'use strict'
 import React from "react";
 import {render} from 'react-dom';
 import {Link} from 'react-router';
 //引入工具类
 import MMALL_COM from 'util/comm.jsx';

 import './index.scss';

var _comm = new MMALL_COM();
class PageTitle extends React.Component{
    constructor(props){
        super(props);

    }
    compoentDidMount(){
        document.tittle=this.props.pageTitle|| 'MMall Admin';
    }
    render(){
        return (
            <div className="row">
                <div className="col-lg-12">
                    <h1 className="page-header">{this.props.pageTitle}</h1>
                    {this.props.children}
                </div>
            </div>
        );
    }
 }
 export default PageTitle;
